package com.xushu.lessons.vip.service;

import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

@Component
public class UserService implements FactoryBean {



	public UserService() {
		System.out.println("UserService创建");
	}

	// 具有懒加载的特性
	@Override
	public Object getObject() throws Exception {
		UserService userService = new UserService();
		return userService;
	}

	@Override
	public Class<?> getObjectType() {
		return XushuService.class;
	}
}
